package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebHelpDao;
import com.yuhanginfo.modules.web.entity.WebHelp;


/**
 * 帮助中心Service
 * @author lvls
 * @version 2017-09-27
 */
@Service
@Transactional(readOnly = true)
public class WebHelpService extends WebCrudService<WebHelpDao, WebHelp> {
    @Autowired
    private WebHelpDao helpDao;
    
	public WebHelp get(String id) {
		return super.get(id);
	}
	
	public List<WebHelp> findList(WebHelp help) {
		return super.findList(help);
	}
	
	public Page<WebHelp> findPage(Page<WebHelp> page, WebHelp help) {
		return super.findPage(page, help);
	}
	
	@Transactional(readOnly = false)
	public void save(WebHelp help) {
		super.save(help);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebHelp help) {
		super.delete(help);
	}

	public List<WebHelp> selectByType(Integer classesType) {
		
		return helpDao.selectByType(classesType);
	}

	public List<WebHelp> selectClassTypeList() {
		
		return helpDao.selectClassTypeList();
	}

	public WebHelp selectById(String id) {
		
		return helpDao.selectById(id);
	}
	
}